package com.woniuxy.daos;

import com.woniuxy.entitys.TbRole;
import com.woniuxy.entitys.TbWorker;
import com.woniuxy.entitys.TbWorkerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbWorkerDao {
    long countByExample(TbWorkerExample example);

    int deleteByExample(TbWorkerExample example);

    int deleteByPrimaryKey(Integer wid);

    int insert(TbWorker record);

    int insertSelective(TbWorker record);

    List<TbWorker> selectByExample(TbWorkerExample example);

    TbWorker selectByPrimaryKey(Integer wid);

    int updateByExampleSelective(@Param("record") TbWorker record, @Param("example") TbWorkerExample example);

    int updateByExample(@Param("record") TbWorker record, @Param("example") TbWorkerExample example);

    int updateByPrimaryKeySelective(TbWorker record);

    int updateByPrimaryKey(TbWorker record);


    List<TbWorker> selFixWorkerList();

    List<TbWorker> getTbWorker(@Param("uname") String uname, @Param("phone")String phone,@Param("rid")Integer rid);

    List<TbWorker> selectAllWorkers();

    List<TbWorker> selByCondition(@Param("keyword") String keyword);

    int updateSoftdel(Integer wid);

    TbWorker loadWorkerInfo(Integer uid);

    int updWorkerInfoByUid(TbWorker worker);
}